package com.gexin.model.notice;

import com.gexin.model.notice.base.BaseNoticeZan;

/**
 * 业务名称:  t_notice_zan() 
 */
@SuppressWarnings("serial")
public class NoticeZan extends BaseNoticeZan<NoticeZan> {
	public static final NoticeZan dao = new NoticeZan();

	public NoticeZan findByUserAndCommentId(Integer id , String noticeId) {
		return findFirst("select * from t_notice_zan where user_id=? and notice_id=?",id,noticeId);
	}

	public NoticeZan findByUserIdAndNoticeId(Integer userId , Integer noticeId) {
		return findFirst("select * from t_notice_zan where user_id=? and notice_id=?",userId,noticeId);

	}
}
